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

Only run aktualizr-repo tests with ed25519 #1038

Merged
merged 1 commit into from
Dec 18, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions src/aktualizr_repo/repo_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "test_utils.h"
#include "uptane_repo.h"

KeyType key_type = KeyType::kUnknown;
KeyType key_type = KeyType::kED25519;
std::string generate_repo_exec;

TEST(aktualizr_repo, generate_repo) {
Expand Down Expand Up @@ -135,12 +135,8 @@ int main(int argc, char **argv) {
return EXIT_FAILURE;
}

bool res = true;
for (int type = static_cast<int>(KeyType::kFirstKnown); type <= static_cast<int>(KeyType::kLastKnown); type++) {
LOG_TRACE << "Running tests for key type " << static_cast<KeyType>(type);
key_type = static_cast<KeyType>(type);
res &= RUN_ALL_TESTS();
}
return res;
// note: we used to run tests for all key types, which was pretty slow.
// Now, they only run with ed25519
return RUN_ALL_TESTS();
}
#endif