[bitbake-devel] [PATCH 1/6] toaster: initial bldcontrol application
Alex DAMIAN
alexandru.damian at intel.com
Thu Jun 12 13:51:57 UTC 2014
From: Alexandru DAMIAN <alexandru.damian at intel.com>
The build features of Toaster will be contained into
a separate application, as to modularize the Toaster
project and provide multiple options for deployment.
This patch adds the application as a barebone Django
application in the Toaster project.
Signed-off-by: Alexandru DAMIAN <alexandru.damian at intel.com>
---
lib/toaster/bldcontrol/__init__.py | 0
lib/toaster/bldcontrol/models.py | 3 +++
lib/toaster/bldcontrol/tests.py | 16 ++++++++++++++++
lib/toaster/bldcontrol/views.py | 1 +
4 files changed, 20 insertions(+)
create mode 100644 lib/toaster/bldcontrol/__init__.py
create mode 100644 lib/toaster/bldcontrol/models.py
create mode 100644 lib/toaster/bldcontrol/tests.py
create mode 100644 lib/toaster/bldcontrol/views.py
diff --git a/lib/toaster/bldcontrol/__init__.py b/lib/toaster/bldcontrol/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/lib/toaster/bldcontrol/models.py b/lib/toaster/bldcontrol/models.py
new file mode 100644
index 0000000..71a8362
--- /dev/null
+++ b/lib/toaster/bldcontrol/models.py
@@ -0,0 +1,3 @@
+from django.db import models
+
+# Create your models here.
diff --git a/lib/toaster/bldcontrol/tests.py b/lib/toaster/bldcontrol/tests.py
new file mode 100644
index 0000000..501deb7
--- /dev/null
+++ b/lib/toaster/bldcontrol/tests.py
@@ -0,0 +1,16 @@
+"""
+This file demonstrates writing tests using the unittest module. These will pass
+when you run "manage.py test".
+
+Replace this with more appropriate tests for your application.
+"""
+
+from django.test import TestCase
+
+
+class SimpleTest(TestCase):
+ def test_basic_addition(self):
+ """
+ Tests that 1 + 1 always equals 2.
+ """
+ self.assertEqual(1 + 1, 2)
diff --git a/lib/toaster/bldcontrol/views.py b/lib/toaster/bldcontrol/views.py
new file mode 100644
index 0000000..60f00ef
--- /dev/null
+++ b/lib/toaster/bldcontrol/views.py
@@ -0,0 +1 @@
+# Create your views here.
--
1.9.1
More information about the bitbake-devel
mailing list