Skip to content

Commit

Permalink
Go over integration test...
Browse files Browse the repository at this point in the history
Try CircleCI
  • Loading branch information
rocky committed Jan 16, 2024
1 parent 33a23c5 commit 85d9777
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 3 deletions.
63 changes: 63 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
version: 2
jobs:
build:
working_directory: ~/rocky/bashdb
parallelism: 1
shell: /bin/bash --login
environment:
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
docker:
- image: circleci/buildpack-deps
steps:
# Machine Setup
# If you break your build into multiple jobs with workflows, you will probably want to do the parts of this that are relevant in each
# The following `checkout` command checks out your code to your working directory. In 1.0 we did this implicitly. In 2.0 you can choose where in the course of a job your code should be checked out.
- checkout
# Prepare for artifact and test results collection equivalent to how it was done on 1.0.
# In many cases you can simplify this from what is generated here.
# 'See docs on artifact collection here https://circleci.com/docs/2.0/artifacts/'
- run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS
# Checkout
# This would typically go in either a build or a build-and-test job when using workflows
# This is based on your 1.0 configuration file or project settings
- run: sh ./autogen.sh
# Dependencies
# This would typically go in either a build or a build-and-test job when using workflows
# Restore the dependency cache
- restore_cache:
keys:
# This branch if available
- v2-dependencies-{{ .Branch }}-
# Default branch if not
- v2-dependencies-master-
# Any branch if there are none on the default branch - this should be unnecessary if you have your default branch configured correctly
- v2-dependencies-
# Save dependency cache
- save_cache:
key: v2-dependencies-{{ .Branch }}-{{ epoch }}
paths:
# This is a broad list of cache paths to include many possible development environments
# You can probably delete some of these entries
- vendor/bundle
- ~/virtualenvs
- ~/.m2
- ~/.ivy2
- ~/.bundle
- ~/.go_workspace
- ~/.gradle
- ~/.cache/bower
# Test
# This would typically be a build job when using workflows, possibly combined with build
# This is based on your 1.0 configuration file or project settings
- run: CIRCLECI=1 make check
# Teardown
# If you break your build into multiple jobs with workflows, you will probably want to do the parts of this that are relevant in each
# Save test results
- store_test_results:
path: /tmp/circleci-test-results
# Save artifacts
- store_artifacts:
path: /tmp/circleci-artifacts
- store_artifacts:
path: /tmp/circleci-test-results
2 changes: 0 additions & 2 deletions test/data/settrace.right
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
(settrace.sh:6):
6: _Dbg_debugger; :
+# Test set_trace call.
+where
->0 in file `settrace.sh' at line 6
Expand Down
3 changes: 2 additions & 1 deletion test/integration/test-settrace.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ debugged_script="$top_builddir/test/example/settrace.sh"

@GREP@ -v "run term-highlight. Setting forced off" $TEST_FILE | \
@GREP@ -v "Syntax highlight in source listings is off.$" | \
@SED@ -e "s:main(.*) called from file \`settrace.sh' at line 0:main() called from file \`settrace.sh' at line 0:" \
@SED@ -e "s:main(.*) called from file \`settrace.sh' at line 0:main() called from file \`settrace.sh' at line 0:" | \
tail -n +3 \
>${FILTERED_TEST_FILE}

check_output $FILTERED_TEST_FILE $RIGHT_FILE
Expand Down

0 comments on commit 85d9777

Please sign in to comment.