Skip to content

bin/verify-exercises-in-docker.sh script#325

Merged
davidbruce merged 1 commit into
exercism:mainfrom
keiravillekode:verify-exercises-in-docker
Jun 12, 2026
Merged

bin/verify-exercises-in-docker.sh script#325
davidbruce merged 1 commit into
exercism:mainfrom
keiravillekode:verify-exercises-in-docker

Conversation

@keiravillekode

Copy link
Copy Markdown
Contributor

This script, adapted from generic-track, is useful for testing exercises against a test runner image.

@keiravillekode

Copy link
Copy Markdown
Contributor Author

One exercise fails:

Verifying gigasecond exercise...
gigasecond: testing...
gigasecond: done
{
	"version": 2,
	"status": "error",
	"tests": [],
	"message": "Test.hx:3: characters 8-25 : Type not found : datetime.DateTime\nTest.hx:11: characters 18-26 : Type not found : DateTime\nTest.hx:12: characters 20-28 : Type not found : DateTime\nGigasecond.hx:1: characters 8-25 : Type not found : datetime.DateTime\nGigasecond.hx:3: characters 31-39 : Type not found : DateTime\nTest.hx:7: lines 7-46 : ... Defined in this class\nTest.hx:18: characters 18-26 : Type not found : DateTime\nTest.hx:19: characters 20-28 : Type not found : DateTime\nTest.hx:21: characters 5-15 : Module Gigasecond does not define type Gigasecond\nTest.hx:25: characters 18-26 : Type not found : DateTime\nTest.hx:26: characters 20-28 : Type not found : DateTime\nTest.hx:28: characters 5-15 : Module Gigasecond does not define type Gigasecond\nTest.hx:32: characters 18-26 : Type not found : DateTime\nTest.hx:33: characters 20-28 : Type not found : DateTime\nTest.hx:35: characters 5-15 : Module Gigasecond does not define type Gigasecond\nTest.hx:39: characters 18-26 : Type not found : DateTime\nTest.hx:40: characters 20-28 : Type not found : DateTime\nTest.hx:42: characters 5-15 : Module Gigasecond does not define type Gigasecond"
}

All the other exercises succeed.

@davidbruce

Copy link
Copy Markdown
Contributor

Please rename the file to end include the file extension .sh.

Optionally, the Rust equivalent also works with podman.
https://github.com/exercism/rust/blob/main/bin/verify_exercises_in_docker.sh

I'm a fan of podman, but I am indifferent if you end up going that route.

@keiravillekode keiravillekode force-pushed the verify-exercises-in-docker branch from 57c1f32 to 3613e94 Compare June 12, 2026 00:48
@keiravillekode keiravillekode changed the title bin/verify-exercises-in-docker script bin/verify-exercises-in-docker.sh script Jun 12, 2026
@keiravillekode

Copy link
Copy Markdown
Contributor Author

Name updated. I'll leave to you any changes to use podman.

@davidbruce davidbruce merged commit 31f2ae3 into exercism:main Jun 12, 2026
2 checks passed
@keiravillekode keiravillekode deleted the verify-exercises-in-docker branch June 12, 2026 01:53
@keiravillekode

Copy link
Copy Markdown
Contributor Author

In case you didn't see the thread: a suggestion to update to a more recent Haxe version
http://forum.exercism.org/t/small-test-runner-images-with-glibc/48412/35

@davidbruce

Copy link
Copy Markdown
Contributor

In case you didn't see the thread: a suggestion to update to a more recent Haxe version http://forum.exercism.org/t/small-test-runner-images-with-glibc/48412/35

I haven't I'll take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants