Skip to content

Commit

Permalink
Started specification with spec of integer addition and subtraction
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Marr <[email protected]>
  • Loading branch information
smarr committed Nov 29, 2020
1 parent 32193cb commit f123be6
Show file tree
Hide file tree
Showing 5 changed files with 24,366 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,12 @@ jobs:
name: ykSOM
dist: bionic
rust: [nightly]
env: REPO=yksom.git BUILD="cargo build" SOM="cargo run -- " SOM_TESTS="--cp ../Smalltalk ../TestSuite/TestHarness.som"
env: REPO=yksom.git BUILD="cargo build" SOM="cargo run -- " SOM_TESTS="--cp ../Smalltalk ../TestSuite/TestHarness.som" SOM_SPECS="--cp ../Smalltalk:../TestSuite:../specification/executable_specs ../specification/executable_specs/AllSpecs.som"


allow_failures:
# allow_failures:
# - env: SOM=JsSOM REPO=JsSOM.git BUILD=make SOM=./som.sh
- env: SOM=PySOM REPO=PySOM.git BUILD="" SOM=./som.sh PYTHON=python
- env: SOM=RPySOM REPO=RPySOM.git BUILD="" SOM=./som.sh PYTHON=python
# - env: SOM=PySOM REPO=PySOM.git BUILD="" SOM=./som.sh PYTHON=python

install:
- |
Expand Down Expand Up @@ -119,4 +118,13 @@ script:
echo "$SOM $SOM_TESTS"
eval "$SOM $SOM_TESTS"
echo Run Specs
if [ "$SOM_SPECS" == "" ]
then
export SOM_SPECS="-cp ../Smalltalk:../TestSuite:../specification/executable_specs AllSpecs"
fi
echo "$SOM $SOM_SPECS"
eval "$SOM $SOM_SPECS"
fi
9 changes: 9 additions & 0 deletions specification/executable_specs/AllSpecs.som
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
AllSpecs = TestHarness (
tests = (
| l1 |
l1 := Vector new.
l1 append: IntSpec.
^ l1
)

)
Loading

0 comments on commit f123be6

Please sign in to comment.