conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "[tests] Update changed generator command test to check initial run behavior.\n" }, { "from": "human", "value": "# Check the handling of generator commands, which are not rerun when they change.\n\n# RUN: rm -rf %t.build\n# RUN: mkdir -p %t.build\n# RUN: cp %s %t.bui...
ninja
chosen
[ { "from": "system", "value": "[Ninja/Lexer] Fix up command line test.\n\n" }, { "from": "human", "value": "# Check basic lexing functionality.\n#\n# RUN: %{llbuild} ninja %s 2> %t.err\n# RUN: %{FileCheck} < %t.err %s\n\n# CHECK: (Token \"Comment\" String:{{.*}} Length:70 Line:[[@LINE+1]] Column:...
ninja
chosen
[ { "from": "system", "value": "[tests] Disable a flaky test on Linux, for now.\n" }, { "from": "human", "value": "# Check that handle the automatic dependency on the Ninja build file, and that\n# we reload it properly if it is rebuilt.\n#\n# RUN: rm -rf %t.build\n# RUN: mkdir -p %t.build\n# RUN: ...
ninja
chosen
[ { "from": "system", "value": "Fix linux shell's lack of source\n" }, { "from": "human", "value": "# Check that jobs in a console pool can't be released.\n\n# RUN: rm -rf %t.build\n# RUN: mkdir -p %t.build\n# RUN: cp %s %t.build/build.ninja\n# RUN: cp %S/Inputs/close-control-fd %t.build\n# RUN: c...
ninja
chosen
[ { "from": "system", "value": "Add depfile and have a common cflags variable.\n" }, { "from": "human", "value": "# directories\nbase_dir = .\ninclude_dir = $base_dir/include\nsrc_dir = $base_dir/src\nout_dir = $base_dir/out\n\n# tools\ncc = clang\ncflags = -Weverything -std=c11 -I $include_dir\n#...
ninja
chosen
[ { "from": "system", "value": "[tests/Ninja] Add test for all the valid rule parameters.\n\n" }, { "from": "human", "value": "# Check rule loading.\n#\n# RUN: %{llbuild} ninja load-manifest %s > %t 2> %t.err\n# RUN: %{FileCheck} < %t %s\n# RUN: %{FileCheck} --check-prefix=CHECK-ERR < %t.err %s\n\...
ninja
chosen
[ { "from": "system", "value": "Change to Unix line endings\n" }, { "from": "human", "value": "\r\nrule add\r\n command = echo build restart.txt: self >> $out\r\n\r\nbuild restart.ninja: add\r\n\r\nrule self\r\n command = echo $out > $out\r\n" }, { "from": "gpt", "value": "\nrule...
ninja
chosen
[ { "from": "system", "value": "Fix build on GNU ld versions that require strict left-to-right link ordering\n" }, { "from": "human", "value": "\n# Define a basic set of rules\nrule cxx-build\n command = $cxx -MMD -MF $out.d $cxxflags -c $in -o $out\n description = CXX - $in\n depfile = $out.d\...
ninja
chosen
[ { "from": "human", "value": "[tests] Add test for timestamp collision behavior.\n" }, { "from": "gpt", "value": "# Check our handling of timestamp collisions and update-if-newer behavior.\n\n# Verify that we perform update-if-newer if the output and the input have the\n# exact same timestamp (us...
ninja
chosen
[ { "from": "human", "value": "[tests] Add an explicit test for rules with no inputs.\n" }, { "from": "gpt", "value": "# Check that a command with no inputs runs properly on the first invocation,\n# even if the output already exists.\n#\n# RUN: rm -rf %t.build\n# RUN: mkdir -p %t.build\n# RUN: cp ...
ninja
chosen
[ { "from": "human", "value": "[tests] Add a test for SIGINT handling.\n\n - Aaaah, it's amazing what one can do with a little shell.\n" }, { "from": "gpt", "value": "# Check that SIGINT handling aborts a build.\n\n# RUN: rm -rf %t.build\n# RUN: mkdir -p %t.build\n# RUN: cp %s %t.build/build.ninja...
ninja
chosen
[ { "from": "human", "value": "[tests] Add coverage of tracing support of dependency scanning.\n" }, { "from": "gpt", "value": "# Check build engine tracing of scanning events.\n\n# RUN: rm -rf %t.build\n# RUN: mkdir -p %t.build\n# RUN: cp %s %t.build/build.ninja\n# RUN: touch %t.build/input-1\n# ...
ninja
chosen
[ { "from": "human", "value": "Add missing test case for previous commit.\n\n" }, { "from": "gpt", "value": "# Check whitespace skipping \"$\\n\" handling.\n#\n# RUN: %{llbuild} ninja lex %s 2> %t.err\n# RUN: %{FileCheck} < %t.err %s\n\n# Ninja does *not* recognize '$\\n' on a leading line.\n# CHE...
ninja
chosen
[ { "from": "human", "value": "[Ninja] Add test for response files\n" }, { "from": "gpt", "value": "# Test for handling response files and related ${in_newline} variable.\n\n# We run the build in a sandbox in the temp directory to ensure we don't\n# interact with the source dirs.\n#\n# RUN: rm -rf...
ninja
chosen