Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed dependency on the solution sets for submission testing. The s…
…ubmission test now uses base sources with a simple target and overlay.
- Loading branch information
Showing
10 changed files
with
153 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDb9CX+IuNQNsMvdQ2AcULcPHeLTN5YzcqszY+98fljcAzTxlv4Gv8fMDcqubDUwTdOBu5uUubVyGnLgKRzhM4nvLm4JW9ArS9suWcs/TFl2Uyvd8ay8/NbEy3j2rAUKBLBYO2e0eeJBqHz8dX+VDCqCo6V/eJKvzcNbH37JfagC0TC4HhMUyTo6lBx0LHyPYygmgb7VS/lLl42WGm1NI6Z2zGEecRZBD7Qh2ohCie0Lw2RcgM3q8mWoxeY3+7r9a9oYSU6gekupTljkFR6zI0qjOyyIvIe6BFjwodA1Q7aLRXwNWjh+bQ8oiK6thZVxuyw2PvASWCVv+L+KV0N/Oep test161 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
-----BEGIN RSA PRIVATE KEY----- | ||
MIIEowIBAAKCAQEA2/Ql/iLjUDbDL3UNgHFC3Dx3i0zeWM3KrM2PvfH5Y3AM08Zb | ||
+Br/HzA3Krmw1ME3TgbublLm1chpy4Ckc4TOJ7y5uCVv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RIZ0kIGJq5TtDC49KMU7tqNeaNBS0icVdoKlsJ | ||
h9LxKdkayIvU3+T1cn3l9U5r2xaNlkDEwoBEZvRzeuUiWKnIiz8CVN41ulGn60yf | ||
at+v4qKlJUusn232AVc8iNsCgYA7jGCCjtNOK5yYj5h78rjR8+oQoz465lpFYzY/ | ||
baypBMkgI81gyHgvm90qwe5xd7XWY9qT0UscaktVc4NQzp0mzk4AuGouLkeFJmv4 | ||
j/NzjzLyWvHz02604IpZ1vpG9w9m/FAw1KEVNBhltIjkKxw5JdrhCzUT+dB6dwHk | ||
YAQvpQKBgB9gy9gJUNhtIu6eLX75T1x4biMxKyg587uttOu9y9GgfW0dELXLtsLl | ||
r5yC8Oo1Irezu2J3K9e5Uk/3O+LjmOsFzv4yjSja9XuQ9JV7eCl1zIglCxo6lTlf | ||
jb89ulQUyV6VcX4IOhHYlw4AFtpZskmTULS/GVYcOMHqVFfVEbJw | ||
-----END RSA PRIVATE KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
kern/test/synchtest.c | ||
kern/vm/kmalloc.c | ||
kern/test/rwtest.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#ifndef _SECRET_H_ | ||
#define _SECRET_H_ | ||
|
||
/* Enable secret based testing. */ | ||
#define SECRET_TESTING | ||
|
||
/* Make sure we overwrite all secrets during injection. */ | ||
#undef SECRET | ||
|
||
#endif /* _SECRET_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package test161 | ||
|
||
import ( | ||
"errors" | ||
) | ||
|
||
// A fake persistence to use for test code | ||
|
||
var testStudent = &Student{ | ||
Email: "test@test161.ops-class.org", | ||
Token: "TestToken4$5^", | ||
} | ||
|
||
type TestingPersistence struct { | ||
Verbose bool | ||
} | ||
|
||
func (p *TestingPersistence) Close() { | ||
} | ||
|
||
func (p *TestingPersistence) Notify(entity interface{}, msg, what int) error { | ||
return nil | ||
} | ||
|
||
func (d *TestingPersistence) CanRetrieve() bool { | ||
return true | ||
} | ||
|
||
func (d *TestingPersistence) Retrieve(what int, who map[string]interface{}, res interface{}) error { | ||
switch what { | ||
case PERSIST_TYPE_STUDENTS: | ||
if email, _ := who["email"]; email == testStudent.Email { | ||
if token, _ := who["token"]; token == testStudent.Token { | ||
students := res.(*[]*Student) | ||
*students = append(*students, testStudent) | ||
} | ||
} | ||
|
||
return nil | ||
|
||
default: | ||
return errors.New("Persistence: Invalid data type") | ||
} | ||
|
||
} |