Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

%apptest doesn't seem to be working properly #1347

Closed
GodloveD opened this issue Mar 1, 2018 · 1 comment
Closed

%apptest doesn't seem to be working properly #1347

GodloveD opened this issue Mar 1, 2018 · 1 comment
Assignees
Labels
Bug DefinitionFile Issues which pertain to definition files Release 2.4.3

Comments

@GodloveD
Copy link
Collaborator

GodloveD commented Mar 1, 2018

Version of Singularity:

2.4.2-development.g7e33029

Expected behavior

Write this in def file:

%apptest foo
    echo "bar"

Create this file in container:

/scif/apps/foo/scif/test.sh

Actual behavior

/scif/apps/foo/scif/test.sh is not created.

Steps to reproduce behavior

$ cat > somedeffile << EOF
BootStrap: docker
From: busybox
%apptest foo
    echo 'I am foo'
EOF

$ sudo singularity build someimage somedeffile

$ singularity exec bb.simg ls -l /scif/apps/foo/scif/
@jscook2345 jscook2345 added Bug DefinitionFile Issues which pertain to definition files Release 2.4.3 labels Apr 11, 2019
@ikaneshiro
Copy link
Contributor

Works on master.
Def:

Bootstrap: docker
From: centos

%apphelp foo
	Foo help message


%applabels foo
	BEST_APP foo

%appenv foo
	export FOO_ENV='foo>bar'

%appfiles foo
	file1 /foofile

%appinstall foo
	yum -y install tree	

%apprun foo
	echo 'I pity the foo'

%apptest foo
	tree /scif
$ singularity test --app foo test.sif
/scif
├── apps
│   └── foo
│       ├── bin
│       ├── foofile
│       ├── lib
│       └── scif
│           ├── env
│           │   ├── 01-base.sh
│           │   └── 90-environment.sh
│           ├── labels.json
│           ├── runscript
│           ├── runscript.help
│           └── test
└── data
    └── foo
        ├── input
        └── output

10 directories, 7 files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug DefinitionFile Issues which pertain to definition files Release 2.4.3
Projects
None yet
Development

No branches or pull requests

3 participants