1
- import os
2
1
from create_database_utils import *
3
2
from diagnostics_test_utils import *
4
3
@@ -22,35 +21,35 @@ def check_build_out(msg, s):
22
21
# no arguments, but `--`
23
22
s = run_codeql_database_create_stdout (['dotnet clean' , 'rm -rf test-db' , 'dotnet run --' ], "test2-db" )
24
23
check_build_out ("Default reply" , s )
25
- check_diagnostics (diagnostics_dir = "test2-db/diagnostic " )
24
+ check_diagnostics (test_db = "test2-db" )
26
25
27
26
# one argument, no `--`
28
27
s = run_codeql_database_create_stdout (['dotnet clean' , 'rm -rf test2-db' , 'dotnet run hello' ], "test3-db" )
29
28
check_build_out ("Default reply" , s )
30
- check_diagnostics (diagnostics_dir = "test3-db/diagnostic " )
29
+ check_diagnostics (test_db = "test3-db" )
31
30
32
31
# one argument, but `--`
33
32
s = run_codeql_database_create_stdout (['dotnet clean' , 'rm -rf test3-db' , 'dotnet run -- hello' ], "test4-db" )
34
33
check_build_out ("Default reply" , s )
35
- check_diagnostics (diagnostics_dir = "test4-db/diagnostic " )
34
+ check_diagnostics (test_db = "test4-db" )
36
35
37
36
# two arguments, no `--`
38
37
s = run_codeql_database_create_stdout (['dotnet clean' , 'rm -rf test4-db' , 'dotnet run hello world' ], "test5-db" )
39
38
check_build_out ("hello, world" , s )
40
- check_diagnostics (diagnostics_dir = "test5-db/diagnostic " )
39
+ check_diagnostics (test_db = "test5-db" )
41
40
42
41
# two arguments, and `--`
43
42
s = run_codeql_database_create_stdout (['dotnet clean' , 'rm -rf test5-db' , 'dotnet run -- hello world' ], "test6-db" )
44
43
check_build_out ("hello, world" , s )
45
- check_diagnostics (diagnostics_dir = "test6-db/diagnostic " )
44
+ check_diagnostics (test_db = "test6-db" )
46
45
47
46
# shared compilation enabled; tracer should override by changing the command
48
47
# to `dotnet run -p:UseSharedCompilation=true -p:UseSharedCompilation=false -- hello world`
49
48
s = run_codeql_database_create_stdout (['dotnet clean' , 'rm -rf test6-db' , 'dotnet run -p:UseSharedCompilation=true -- hello world' ], "test7-db" )
50
49
check_build_out ("hello, world" , s )
51
- check_diagnostics (diagnostics_dir = "test7-db/diagnostic " )
50
+ check_diagnostics (test_db = "test7-db" )
52
51
53
52
# option passed into `dotnet run`
54
53
s = run_codeql_database_create_stdout (['dotnet clean' , 'rm -rf test7-db' , 'dotnet build' , 'dotnet run --no-build hello world' ], "test8-db" )
55
54
check_build_out ("hello, world" , s )
56
- check_diagnostics (diagnostics_dir = "test8-db/diagnostic " )
55
+ check_diagnostics (test_db = "test8-db" )
0 commit comments