Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,28 @@ test-lit-py: ## Run tests against FileCheck.py.
lit \
-vv $(PWD)/tests/integration

FILECHECK_REAL_EXEC=$(PWD)/tests/integration/tools/FileCheck/FileCheck
test-lit-real: ## Run tests against FileCheck C++.
@echo "--- Running integration tests against FileCheck C++ ---"
test-lit-real: test-lit-real-8 test-lit-real-9 ## Run tests against FileCheck C++.

FILECHECK_REAL_8_EXEC=$(PWD)/tests/integration/tools/FileCheck/FileCheck-8.0.1
test-lit-real-8: ## Run tests against LLVM FileCheck 8.
@echo "--- Running integration tests against LLVM FileCheck 8.0.1 ---"
cd tests/integration && make clean

CURRENT_DIR=$(PWD) \
REAL_ONLY=1 \
FILECHECK_EXEC=$(FILECHECK_REAL_8_EXEC) \
PATH=$(PWD)/tests/integration/tools/FileCheck:$(PWD)/tests/integration/tools:$$PATH \
lit \
-vv $(PWD)/tests/integration

FILECHECK_REAL_9_EXEC=$(PWD)/tests/integration/tools/FileCheck/FileCheck-9.0.1
test-lit-real-9: ## Run tests against LLVM FileCheck 9.
@echo "--- Running integration tests against LLVM FileCheck 9.0.1 ---"
cd tests/integration && make clean

CURRENT_DIR=$(PWD) \
REAL_ONLY=1 \
FILECHECK_EXEC=$(FILECHECK_REAL_EXEC) \
FILECHECK_EXEC=$(FILECHECK_REAL_9_EXEC) \
PATH=$(PWD)/tests/integration/tools/FileCheck:$(PWD)/tests/integration/tools:$$PATH \
lit \
-vv $(PWD)/tests/integration
Expand Down
10 changes: 1 addition & 9 deletions tests/integration/tools/FileCheck/FileCheck
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,4 @@

file_check_path=`echo $(cd $(dirname "$0") && pwd -P)`

echo $file_check_path

if [[ "$OSTYPE" == "linux-gnu" ]]; then
$file_check_path/FileCheck-Linux "$@"
elif [[ "$OSTYPE" == "darwin"* ]]; then
$file_check_path/FileCheck-macOS "$@"
else
exit 1
fi
$file_check_path/FileCheck-9.0.1 "$@"
13 changes: 13 additions & 0 deletions tests/integration/tools/FileCheck/FileCheck-8.0.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

file_check_path=`echo $(cd $(dirname "$0") && pwd -P)`

echo $file_check_path

if [[ "$OSTYPE" == "linux-gnu" ]]; then
$file_check_path/FileCheck-8.0.1-Linux "$@"
elif [[ "$OSTYPE" == "darwin"* ]]; then
$file_check_path/FileCheck-8.0.1-macOS "$@"
else
exit 1
fi
13 changes: 13 additions & 0 deletions tests/integration/tools/FileCheck/FileCheck-9.0.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

file_check_path=`echo $(cd $(dirname "$0") && pwd -P)`

echo $file_check_path

if [[ "$OSTYPE" == "linux-gnu" ]]; then
$file_check_path/FileCheck-9.0.1-Linux "$@"
elif [[ "$OSTYPE" == "darwin"* ]]; then
$file_check_path/FileCheck-9.0.1-macOS "$@"
else
exit 1
fi
Binary file not shown.
Binary file not shown.