Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Unable to run command test for a go program #70

Open
ruthvik-github opened this issue Feb 2, 2023 · 1 comment
Open

Unable to run command test for a go program #70

ruthvik-github opened this issue Feb 2, 2023 · 1 comment

Comments

@ruthvik-github
Copy link

Hello,

I have created an assignment to write a go program and created tests for the same. One test is input-output test for STDIN and STDOUT, which checks if the program returns the expected value. Second test is run command which will run "echo "3 2 1" | ./opgame" Terminal command that passes the input to test.
However when I run the script I get following error
image

As shown in image it is asking for build cache, GOCACHE
Is it possible to write auto-grading for GO programming language.

@markpatterson27
Copy link
Contributor

markpatterson27 commented Feb 6, 2023

AFAIK, Go only needs the $HOME env var to be set. I have a PR to enable this #53

In the meantime, you could try setting the env var on each process run by prepending each grading command with $HOME=/home/runner. e.g. $HOME=/home/runner echo "3 2 1" | ./opgame or see #23 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants