File tree Expand file tree Collapse file tree 5 files changed +7
-36
lines changed Expand file tree Collapse file tree 5 files changed +7
-36
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ override_dh_perl:
5858
5959# For pre-release testing put all the files in a directory in the src tree
6060# called grr_release_testing and point dh_virtualenv at it like this:
61- # --extra-pip-arg '-f' --extra-pip-arg 'file://usr/src/grr/grr_release_testing'
61+ # --extra-pip-arg '-f' --extra-pip-arg 'file:/// usr/src/grr/grr_release_testing'
6262# You'll also need to modify .dockerignore to remove the lines that exclude the
6363# python package names and tarballs.
6464override_dh_virtualenv :
Original file line number Diff line number Diff line change 88from grr .lib import aff4
99from grr .lib import config_lib
1010from grr .lib .aff4_objects import collects
11- from grr .lib .rdfvalues import client as rdf_client
12-
13-
14- class TestGrepMemory (base .AutomatedTest ):
15- """Test ScanMemory."""
16- platforms = ["Windows" ]
17- flow = "ScanMemory"
18- test_output_path = "analysis/grep/testing"
19- args = {"also_download" : False ,
20- "grep" : rdf_client .BareGrepSpec (
21- literal = "grr" ,
22- length = 4 * 1024 * 1024 * 1024 ,
23- mode = rdf_client .GrepSpec .Mode .FIRST_HIT ,
24- bytes_before = 10 ,
25- bytes_after = 10 ),
26- "output" : test_output_path }
27-
28- def CheckFlow (self ):
29- collection = aff4 .FACTORY .Open (
30- self .client_id .Add (self .test_output_path ),
31- token = self .token )
32- self .assertIsInstance (collection , collects .RDFValueCollection )
33- self .assertEqual (len (list (collection )), 1 )
34- reference = collection [0 ]
35-
36- self .assertEqual (reference .length , 23 )
37- self .assertEqual (reference .data [10 :10 + 3 ], "grr" )
3811
3912
4013class AbstractTestAnalyzeClientMemory (base .ClientTestBase ):
Original file line number Diff line number Diff line change @@ -1894,7 +1894,8 @@ def testPathSpecInterpolation(self):
18941894 self .assertEqual (flow_obj .args .pathspec .pathtype , pathspec .pathtype )
18951895 self .assertEqual (flow_obj .args .pathspec .CollapsePath (), additional_path )
18961896
1897- def testAFF4Initialization (self ):
1897+ # TODO(user): re-work this test and re-enable.
1898+ def disabled_testAFF4Initialization (self ):
18981899 blacklist = set ([aff4 .AFF4Stream , aff4_grr .VFSGRRClient ])
18991900 factory = aff4 .FACTORY
19001901
Original file line number Diff line number Diff line change 1919class RepackingTests (test_lib .GRRBaseTest ):
2020 """Tests for maintenance utils functionality."""
2121
22- # TODO(user): temporarily disable this test until we have released new
23- # templates that can actually be repacked. Re-enabling is on the release
24- # checklist:
25- # https://github.com/google/grr/issues/366
2622 @test_lib .RequiresPackage ("grr-response-templates" )
27- def disabled_testRepackAll (self ):
23+ def testRepackAll (self ):
2824 """Test repacking all binaries."""
2925 self .executables_dir = config_lib .Resource ().Filter ("executables" )
3026 with utils .TempDirectory () as tmp_dir :
Original file line number Diff line number Diff line change 44# It is called by install_data/debian/dpkg_server/rules when building the deb
55# package.
66
7+ set -x
78set -e
89
910INSTALL_PREFIX=" " ;
@@ -63,8 +64,8 @@ mkdir -p "$INSTALL_PREFIX/etc/grr"
6364# When installed globally the config files are copied to the global
6465# configuration directory, except grr-server.yaml, which is effectively part of
6566# the code.
66- for f in " $SRC_DIR /install_data/etc/*.yaml" ; do
67- if [[ $f != " $SRC_DIR /install_data/etc/grr-server.yaml" ] ]; then
67+ for f in $SRC_DIR /install_data/etc/* .yaml; do
68+ if [ " $f " != " $SRC_DIR /install_data/etc/grr-server.yaml" ]; then
6869 $INSTALL_CMD " $f " " $INSTALL_PREFIX /etc/grr/"
6970 fi
7071done
You can’t perform that action at this time.
0 commit comments