6781: Add test cases and packaging support.
[arvados.git] / services / login-sync / test / binstub_new_user / useradd
1 #!/bin/bash
2
3 stub="${0##*/}"
4
5 # Record what actually happened in the "spy" file
6 echo "$stub $*" >> "$ARVADOS_LOGIN_SYNC_TMPDIR/spy"
7
8 # Exit 0 if this command was listed in the "succeed" file
9 exec fgrep -qx -- "$stub $*" "$ARVADOS_LOGIN_SYNC_TMPDIR/succeed"