Skip to content

Commit

Permalink
Add "basic" integration test clear output
Browse files Browse the repository at this point in the history
Clear output of what went wrong, if any tool in "basic" integration test fails
  • Loading branch information
mugdhadhole1 committed Jan 23, 2025
1 parent ac89cf8 commit de8dcdd
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions tests-integration/projects/basic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,16 @@ THIS_TEST:=$(shell realpath --relative-to $(LOBSTER_ROOT) $(PWD))
THIS_TEST_ESCAPED:=$(subst /,\\/,$(THIS_TEST))

html_report.html: cppcode.lobster gtests.lobster mcode.lobster system-requirements.lobster software-requirements.lobster lobster.conf pycode.lobster json.lobster
@lobster-report
@lobster-online-report
@cp report.lobster report.reference_output
@lobster-html-report
@lobster-ci-report | tee ci_report.reference_output

@bash -c "lobster-report && echo '✅ lobster-report succeeded!' || { echo '❌ ERROR: lobster-report failed!'; exit 1; }"

@bash -c "lobster-online-report && echo '✅ lobster-online-report succeeded!' || { echo '❌ ERROR: lobster-online-report failed!'; exit 1; }"

@cp report.lobster report.reference_output && echo '✅ Copy report.lobster to report.reference_output succeeded!' || { echo '❌ ERROR: copy report.lobster to report.reference_output failed!'; exit 1; }

@bash -c "lobster-html-report && echo '✅ lobster-html-report succeeded!' || { echo '❌ ERROR: lobster-html-report failed!'; exit 1; }"

@bash -c "lobster-ci-report | tee ci_report.reference_output && echo '✅ lobster-ci-report succeeded!' || { echo '❌ ERROR: lobster-ci-report failed!'; exit 1; }"

cppcode.lobster: foo.h foo.cpp
@lobster-cpp foo.cpp foo.h \
Expand Down

0 comments on commit de8dcdd

Please sign in to comment.