Skip to content

Commit f22f30b

Browse files
committed
add s2 test demo to dataset
1 parent 21b17a2 commit f22f30b

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

pkg/demoinfocs/demoinfocs_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const (
3434
defaultDemPath = csDemosPath + "/default.dem"
3535
retakeDemPath = csDemosPath + "/retake_unknwon_bombsite_index.dem"
3636
unexpectedEndOfDemoPath = csDemosPath + "/unexpected_end_of_demo.dem"
37+
s2DemPath = csDemosPath + "/s2.dem"
3738
)
3839

3940
var concurrentDemos = flag.Int("concurrentdemos", 2, "The `number` of current demos")
@@ -194,17 +195,13 @@ func TestDemoInfoCs(t *testing.T) {
194195
assertGolden(t, assertions, "default", actual.Bytes())
195196
}
196197

197-
var s2Dem = flag.String("s2dem", "", "source 2 demo to parse")
198-
199198
func TestS2(t *testing.T) {
200199
t.Parallel()
201200

202201
if testing.Short() {
203202
t.Skip("skipping test due to -short flag")
204203
}
205204

206-
s2DemPath := *s2Dem
207-
208205
f, err := os.Open(s2DemPath)
209206
assertions := assert.New(t)
210207
assertions.NoError(err, "error opening demo %q", s2DemPath)

scripts/coverage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -e
44

55
scripts_dir=$(dirname "$0")
6-
$scripts_dir/download-test-data.sh default.7z unexpected_end_of_demo.7z regression-set.7z retake_unknwon_bombsite_index.7z valve_matchmaking.7z
6+
$scripts_dir/download-test-data.sh default.7z unexpected_end_of_demo.7z regression-set.7z retake_unknwon_bombsite_index.7z valve_matchmaking.7z s2.7z
77

88
# don't cover mocks and generated protobuf code
99
coverpkg_ignore='/(fake|msg)'

scripts/git-hooks/link-git-hooks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ echo -n 'this will download ~ 1 GB of test-data (if not already done) [y/N] '
3333

3434
read prePushYesNo
3535
if [[ "$prePushYesNo" == "y" || "$prePushYesNo" == "Y" ]]; then
36-
scripts/download-test-data.sh default.7z unexpected_end_of_demo.7z regression-set.7z
36+
scripts/download-test-data.sh default.7z unexpected_end_of_demo.7z regression-set.7z s2.7z
3737
link .git/hooks/pre-push ../../scripts/git-hooks/pre-push.sh
3838
echo 'added pre-push hook'
3939
fi

scripts/regression-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
set -e
44

55
scripts_dir=$(dirname "$0")
6-
$scripts_dir/download-test-data.sh default.7z unexpected_end_of_demo.7z regression-set.7z
6+
$scripts_dir/download-test-data.sh default.7z unexpected_end_of_demo.7z regression-set.7z s2.7z
77

88
go test -tags unassert_panic ./...

test/cs-demos

Submodule cs-demos updated from e970099 to 52d6fd1

0 commit comments

Comments
 (0)